import { S } from '../../s';
import { IPSDETreeUAColumn } from './ipsdetree-uacolumn';
import { PSDETreeColumnImpl } from './psdetree-column-impl';
import { IPSDEUIActionGroup } from '../../dataentity/uiaction/ipsdeuiaction-group';

export class PSDETreeUAColumnImpl
  extends PSDETreeColumnImpl
  implements IPSDETreeUAColumn
{
  get dataItemName(): string {
    return this.M.dataItemName;
  }

  protected psdeuiactiongroup: IPSDEUIActionGroup;
  getPSDEUIActionGroup(): IPSDEUIActionGroup | null {
    return (
      this.psdeuiactiongroup ||
      (this.psdeuiactiongroup = this.fillObjectModel(
        S._20f,
        this.M.getPSDEUIActionGroup,
        S._2e6,
      ) as IPSDEUIActionGroup)
    );
  }
  get cls(): string {
    return 'PSDETreeUAColumnImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._1bd) return true;
    return super.instanceof(cls);
  }
}
